/**********************************************************************

    ArgusAbout.cp

***********************************************************************/

/*
    Functions Include:
    
      MyAboutDialog           Standard Argus About Dialog
*/

/********** Includes */
#include <Dialogs.h>
#include "Fn_Prototypes.h"
#include "ArgusHelp.h"

#include "MainWindow.h"    // may need to modify

/********** Defines */
#define ABOUT_DLOG     599
#define NIL_PTR        0L
#define ALLOCATE_MEM   0
#define IN_FRONT       (WindowPtr)-1L
#define OK_BUTTON      1
#define HELP_BUTTON    2

/********** Prototypes */
Boolean MyAboutDialog( void );

/********** MyAboutDialog */

Boolean MyAboutDialog( void )

    WindowPtr   docWindow;
    DialogPtr   dialog;
    Boolean     done;
    Boolean     result;
    short       itemHit;
    short       itemType;
    Handle      itemHandle;
    Rect        itemRect;
    EventRecord theEvent;

    result = FALSE;

    docWindow = FrontWindow();
    if( docWindow != NIL_PTR )
        MyDoDeactivateWindow( docWindow );

    dialog = GetNewDialog( ABOUT_DLOG, ALLOCATE_MEM, IN_FRONT );

    if( dialog == NIL_PTR )
        return( result );

    /* AdjustMenus_(); */

    ShowWindow( dialog );
    FnMisc_FrameButton( dialog, OK_BUTTON );

    done = FALSE;
    while( done == FALSE )
    
        ModalDialog( nil, &itemHit );

        switch( itemHit )
        
            case OK_BUTTON:
                result = TRUE;
                done = TRUE;
                break;
            case HELP_BUTTON:
                DisposeDialog( dialog );
                MyHelpDialog();
                done = TRUE;
                return( result );
                break;

    DisposDialog( dialog );
    return( result );

/**********************************************************************

    ArgusAbout.r

***********************************************************************/

#include <Types.r>

resource 'DLOG' (599, "About Dialog") 

76, 105, 288, 401,

dBoxProc,

invisible,

noGoAway,

0x0,

599,

"About Dialog"
;

resource 'DITL' (599, "About Dialog") 

/* array DITLarray: 7 elements */

/* [1] */

182, 226, 202, 286,

Button 

enabled,

"OK"

,

/* [2] */

149, 226, 169, 286,

Button 

enabled,

"Help"

,

/* [3] */

124, 14, 202, 179,

Picture 

disabled,

599

,

/* [4] */

79, 42, 125, 255,

Picture 

disabled,

598

,

/* [5] */

13, 131, 47, 165,

Picture 

disabled,

597

,

/* [6] */

53, 73, 69, 224,

StaticText 

disabled,

"Application x.x"

,

0, 0, 0, 0,

HelpItem 

  disabled,

  HMScanhdlg

  599

;

resource 'PICT' (599) 

550,

-1, -1, 77, 164,

$"1101 A000 82A0 008C 0100 0AFF FFFF FF00"

$"4D00 A407 0000 0000 2200 0100 1C00 00A0"

$"00A0 A100 A400 020D FC01 000A 0000 0000"

$"0000 0000 0700 0100 0122 0049 0001 1BB8"

$"2300 0023 091B 2300 0023 02F9 2300 0023"

$"1034 2300 0023 E900 2300 0023 FCF2 2300"

$"0023 000E 2300 0023 E500 2300 00A0 00A3"

$"0100 0AFF FFFF FF00 4D00 A423 1BB8 2309"

$"1B23 02F9 2310 3423 E900 23FC F223 000E"

$"23E5 00A0 00A1 0700 0000 0022 0027 0013"

$"0000 A000 A0A1 00A4 0002 0FFC 7100 3200"

$"2200 0100 4900 3700 2500 0E00 2700 1300"

$"2200 1C00 2500 2B00 4900 3700 4900 2000"

$"3900 1C00 4900 1C00 4900 0100 2500 0E01"

$"000A 0000 0000 0000 0000 0700 0100 0122"

$"0025 000E 0502 2300 0023 09FB 2300 0023"

$"0F03 2300 0023 0C24 2300 0023 E900 2300"

$"0023 FCF0 2300 0023 0010 2300 0023 E500"

$"2300 0023 0DDC 2300 0084 000A 0000 0000"

$"0000 0000 A000 A301 000A FFFF FFFF 004D"

$"00A4 8400 0A00 0000 0000 0000 0023 0502"

$"2309 FB23 0F03 230C 2423 E900 23FC F023"

$"0010 23E5 0023 0DDC A000 A1A0 008D A100"

$"9600 0C01 0000 0002 0000 0000 0000 00A1"

$"009A 0008 FFF9 0000 001B 0000 0100 0A00"

$"2800 3600 4100 6F2C 0009 0003 0647 656E"

$"6576 6103 0003 0409 0D00 122E 0004 0000"

$"0100 2B37 3B04 5247 5553 A000 97A1 0096"

$"000C 0100 0000 0200 0000 0000 0000 A100"

$"9A00 08FF FC00 0000 3300 0001 000A 003F"

$"003A 004C 00A3 0400 0D00 0A2B 040E 1453"

$"6F66 7477 6172 6520 456E 6769 6E65 6572"

$"696E 67A0 0097 0100 0AFF FFFF FF00 4D00"

$"A422 003F 003A 6800 A000 83FF"
;

resource 'PICT' (598) 

202,

-1, -1, 45, 212,

$"1101 A000 82A1 0096 000C 0200 0000 0200"

$"0000 0000 0000 A100 9A00 0800 0D00 0000"

$"4D00 0001 000A 0000 0000 002C 00D3 2C00"

$"0900 0406 4D6F 6E61 636F 0300 040D 0009"

$"2E00 0400 0001 002B 1C09 1B41 7267 7573"

$"2053 6F66 7477 6172 6520 456E 6769 6E65"

$"6572 696E 670D 2B0C 0B17 436F 6D70 7553"

$"6572 7665 3A20 3733 3734 312C 3234 3135"

$"0D28 001F 0001 2449 6E74 6572 6E65 743A"

$"2037 3337 3431 2E32 3431 3540 636F 6D70"

$"7573 6572 7665 2E63 6F6D 0D2B 4B0B 0A28"

$"4672 6565 7761 7265 29A0 0097 A000 83FF"
;

resource 'PICT' (597) 

187,

-1, -1, 33, 33,

$"1101 A000 8201 000A FFFF FFFF 0021 0021"

$"9000 0400 0000 0000 2000 2000 0000 0000"

$"2000 2000 0000 0000 2000 2000 0100 0100"

$"0000 0280 0000 0440 0000 0820 0000 1010"

$"0000 2008 0000 4004 0000 8002 0001 0001"

$"0002 0000 8004 0000 4008 0000 2010 0000"

$"1020 0000 0840 003F 0480 0040 8240 0080"

$"4120 0130 2210 01C8 1408 0E7F 8F04 0230"

$"0702 0100 0701 0080 0700 8060 0700 401F"

$"E700 2002 1F00 1004 0700 0808 0000 0410"

$"0000 0220 0000 0140 0000 0080 00A0 0083"

$"FF"
;

/**********************************************************************

    ArgusAboutBalloons.r

***********************************************************************/

#include <Types.r>
#include <BalloonTypes.r>

resource 'hdlg' (599, "About Balloons", purgeable)
  /* Header */
  HelpMgrVersion,
  0,                  /* start help with first item in DITL */
  hmSaveBitsNoWindow, /* hmDefaultOptions or hmSaveBitsNoWindow */
  0,                  /* balloon definition */
  0,                  /* variation code or position code, reference
                         IM: More Macintosh Toolbox p3-10 */
  
  /* Missing Component */
  HMSkipItem 
  ,
  
  /* Help */
  
    /* [1] */
    HMStringREsItem  /* store help messages in STR# 500 */
     0, 0 ,         /* default tip location is  0, 0  */
     0, 0, 0, 0 ,   /* default alternate rectangle */
    599, 1,           /* OK button */
    0, 0,             /* never dimmed */
    0, 0,             /* never checked */
    0, 0              /* never marked */
    ,
    
    /* [2] */
    HMStringREsItem 
     0, 0 ,
     0, 0, 0, 0 ,
    599, 2,           /* Help button */
    0, 0,
    0, 0,
    0, 0
    ,
    
    /* [3] */
    HMSkipItem       /* Picture text */
    ,

    /* [4] */
    HMSkipItem       /* Application name text */
    ,

    /* [5] */
    HMSkipItem       /* Application name text */
    ,
  
;

resource 'STR#' (599, "About Dialog Help Strings") 
  
  /* [1] */
  "To dismiss dialog, click this button.";
  /* [2] */
  "To display help for this application, click this button.";
  
;

// End of File